package com.xixilala.video.util

import android.opengl.GLES20

object ShaderUtil {

    fun loadShader(shaderType:Int,shaderStr:String): Int {
        val glCreateShader = GLES20.glCreateShader(shaderType)
        GLES20.glShaderSource(glCreateShader,shaderStr)
        GLES20.glCompileShader(glCreateShader)
        return glCreateShader
    }

}